﻿namespace BestEasyCMS.Framework.SessionStorage
{
    public interface ISessionStorageService
    {
        /// <summary>
        /// 添加一个Session
        /// </summary>
        /// <param name="key">键</param>
        /// <param name="value">值</param>
        /// <param name="timeOut">过期时间/分钟[默认20分钟]</param>
        void SetSession(string key, object value, int timeOut);

        /// <summary>
        /// 获取一个Session
        /// </summary>
        /// <param name="key">键</param>
        /// <returns></returns>
        object GetSession(string key);
    }
}
